import time

from selenium import webdriver
from selenium.webdriver import Keys
from selenium.webdriver.common.by import By


driver=webdriver.Edge()
driver.maximize_window()
driver.get('https://www.baidu.com/')

search=driver.find_element(By.CSS_SELECTOR,'.s_ipt')
search.send_keys("农作物")
time.sleep(2)
search.send_keys(Keys.ENTER)

driver.execute_script('window.scrollTo(0,document.body.scrollHeight)')
time.sleep(5)

# driver.execute_script('window.scrollTo(0,document.body.scrollHeight)')